import 'package:flutter/material.dart';
import 'package:flutter/services.dart';


class TextFontWidget extends StatelessWidget {
  final SystemUiOverlayStyle _style = SystemUiOverlayStyle(statusBarColor: Colors.transparent);
  @override
  Widget build(BuildContext context) {
    SystemChrome.setSystemUIOverlayStyle(_style);
    // TODO: implement build
    return MaterialApp(
      home: TextFontPage(),
      theme: ThemeData(primarySwatch: Colors.yellow),
    );
  }
}

class TextFontPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return _TextFontPage();
  }
}

class _TextFontPage extends State<StatefulWidget> {

  TextStyle textStyle = TextStyle(
     color: Colors.yellow,
     fontSize: 10,
  );


  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text("Jeek"),
      ),
      body: Column(
        children: <Widget>[
          Text("Hell Word Jeek",
          textAlign: TextAlign.center,
          maxLines: 2,
          overflow: TextOverflow.clip,
          textScaleFactor: 2,
          style: textStyle,),
          Text.rich(TextSpan(
            children: [
              TextSpan(
                text: "主页",
                style: TextStyle(
                  fontSize: 25
                )
              ),
              TextSpan(
                text: "www.baidu.com",
                style: TextStyle(
                  fontSize: 25,
                  color: Color(0xff0000ff),
                )
              )
            ]
          ))
        ],
      ),
    );
  }
}